package 设计模式.factory2.pizza.order;

import com.atguigu.principle.factory2.pizza.pizza.*;

public class LDOrderPizza extends OrderPizza {

    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza=null;
        if (orderType.equals("LDcheese")){
            pizza=new LDCheesePizza();
        }else if (orderType.equals("LDgreek")){
            pizza=new LDGreekPizza();
        }
        return pizza;
    }
}
